
import java.io.UnsupportedEncodingException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2017/6/3 0003.
 */
public class test {
    public static void main(String[] args) throws UnsupportedEncodingException, ParseException {
//        JSONObject a = HttpTool.sendReqMsg("{\"sn\":\"LUV5VE6Z6EUH\",\"data\":\"21321\",\"method\":\"send\",\"key\":\"6C915AA2EC314F97FC4011DCF584D16A\"}", "http://127.0.0.1:8097/api/recv");
//        int b=0;
        DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

        System.out.println(sdf.format(new Date(1486087810000L)));
    }
}
